package com.tang.base;

import com.tang.configuration.RabbitConfig;
import com.tang.util.RedisUtil;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.rabbit.support.CorrelationData;

import javax.annotation.Resource;

public class BaseRedis implements RabbitTemplate.ConfirmCallback, RabbitTemplate.ReturnCallback{

    @Resource
    public RedisUtil redisUtil;

    public static RabbitTemplate rabbitTemplate;

    public void confirm(CorrelationData correlationData, boolean ack, String cause){
    }

    public void returnedMessage(Message message, int replyCode, String replyText, String exchange, String routingKey) {
    }

}
